package com.cskaoyan.bean;

/**
 * 委托类
 * @author stone
 * @date 2021/11/16 16:07
 */
public class Ray implements IRay{

    public void buyBreakFast() {
        System.out.println("买一碗热干面");
    }

    public void drink() {
        System.out.println("喝水");
    }

    public void playBall(String name) {
        System.out.println("打" + name);
    }

    @Override
    public String sayGoodbye(String name, Integer age, boolean aha) {
        String result = "name :" + name + "\t" + age + "\t" + aha;
        System.out.println(result);
        return result;
    }
}
